RETRIEVE SMS LIST- php

To retrieve a detailed log of your messaging history, use the following code:

<? php

$url = 'https://messagingapis.paylite.net/api/messagingdata/GetSMSList';

$ch = curl_init($url);

$jsonData = '{

"ApiKey": "Your API Key",

"StartDate": "Start Date",

"EndDate": "End Date",

 

}';

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

$result = curl_exec($ch);

echo($result);

?>